package com.chenfeng.ego.rest.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.chenfeng.ego.pojo.TbItem;
import com.chenfeng.ego.rest.service.TbItemService;



@Controller
public class TbItemController
{

	@Resource
	TbItemService itemService;
	@RequestMapping("selById")
	@ResponseBody
	public TbItem selById(long id)
	{
		return itemService.selByTd(id);
	};
}
